import { getHistoryDataList } from "@/api/modules/iot/data";
export const useSensorHistory = (devSn: string, dataKey: string) => {
	const featchHistory = async (param: { startTime: string; endTime: string; [key: string]: any }) => {
		return await getHistoryDataList({
			...param,
			idSn: devSn,
			key: dataKey,
			keyType: "sensor", //sensor、system,
			startTime: param.startTime,
			endTime: param.endTime
		});
	};
	return {
		featchHistory
	};
};
